package com.dailyblue.example.springcloud.consumer.basic.controller;

import com.dailyblue.example.springcloud.commons.util.JsonResult;
import com.dailyblue.example.springcloud.consumer.basic.service.ConsumerBasicService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/consumer_basic")
public class ConsumerBasicController {
    @Resource
    private ConsumerBasicService service;

    @GetMapping("/a")
    public JsonResult a() {
        return service.a();
    }

    @GetMapping("/b")
    public JsonResult b() {
        return service.b();
    }

    @GetMapping("/c")
    public JsonResult c() {
        return service.c();
    }
}
